package com.sl.au.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 预计订单
 * 
 */
@Entity
@Table(name = "sl_crm_expectedorder")
public class ExpectedOrder extends Root {
	
	/**
	 * 负责人
	 */
	@Column(name = "sChargePerson")
	private String chargePerson;
	
	/**
	 * 预计订货时间
	 * 
	 */
	@Column(name = "sExpectedDate")
	private Date expectedDate;
	
	/**
	 * 预计订货量
	 */
	@Column(name = "nOrderAmount")
	private Integer orderAmount;
	
	/**
	 * 金额
	 */
	@Column(name = "namountMoney")
	private long amountMoney;
	
	/**
	 * 中标说明
	 */
	@Column(name = "sExplain")
	private String explain;
	
	/**
	 * 中标率
	 * 
	 */
	@Column(name = "sProbability")
	private double probability;
	
	/**
	 * user_id(创建人id)
	 * 
	 */
	@ManyToOne
	@JoinColumn(unique = false)
	private User user;
	
	/**
	 * 机会
	 * 
	 */
	@ManyToOne
	@JoinColumn(unique = false)
	private Chance chance;

	public String getChargePerson() {
		return chargePerson;
	}

	public void setChargePerson(String chargePerson) {
		this.chargePerson = chargePerson;
	}

	public Date getExpectedDate() {
		return expectedDate;
	}

	public void setExpectedDate(Date expectedDate) {
		this.expectedDate = expectedDate;
	}

	public Integer getOrderAmount() {
		return orderAmount;
	}

	public void setOrderAmount(Integer orderAmount) {
		this.orderAmount = orderAmount;
	}

	public long getAmountMoney() {
		return amountMoney;
	}

	public void setAmountMoney(long amountMoney) {
		this.amountMoney = amountMoney;
	}

	public String getExplain() {
		return explain;
	}

	public void setExplain(String explain) {
		this.explain = explain;
	}

	public double getProbability() {
		return probability;
	}

	public void setProbability(double probability) {
		this.probability = probability;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Chance getChance() {
		return chance;
	}

	public void setChance(Chance chance) {
		this.chance = chance;
	}
	
}
